Skip to content

Respect device supports_zip#32

Merged
g4bri3lDev merged 4 commits intomainfrom
fix/respect-supports-zip
Mar 24, 2026
Merged

Respect device supports_zip#32
g4bri3lDev merged 4 commits intomainfrom
fix/respect-supports-zip

Conversation

@g4bri3lDev
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the upload path to respect a device/display capability flag (supports_zip) so compressed uploads are only attempted when the connected device reports ZIP transmission support.

Changes:

  • Gate compressed upload protocol selection in OpenDisplayDevice.upload_image() and upload_prepared_image() based on DisplayConfig.supports_zip.
  • Add unit tests for DisplayConfig.supports_zip derived from the transmission_modes bitfield.
  • Add unit tests ensuring upload methods enable/disable compression based on device config and size limits.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/unit/test_models_config.py Adds coverage for DisplayConfig.supports_zip derived from transmission_modes.
tests/unit/test_device_upload_compression.py New tests asserting upload methods respect device ZIP support (and size/flags).
src/opendisplay/device.py Uses config-reported ZIP support to decide whether to use compressed upload protocol.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

g4bri3lDev and others added 3 commits March 24, 2026 20:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@g4bri3lDev g4bri3lDev merged commit 03375e8 into main Mar 24, 2026
4 checks passed
@g4bri3lDev g4bri3lDev deleted the fix/respect-supports-zip branch March 24, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants